  public function executeIndex(sfWebRequest $request)
  {
    // sorting
    if ($request->getParameter('sort') && $this->isValidSortColumn($request->getParameter('sort')))
    {
      $this->setSort(array($request->getParameter('sort'), $request->getParameter('sort_type')));
    }

    // pager
    if ($request->getParameter('page'))
    {
      $this->setPage($request->getParameter('page'));
    }

    $this->pager = $this->getPager();
    $this->sort = $this->getSort();
    $this->hasFilters = count($this->getUser()->getAttribute('<?php echo $this->getModuleName() ?>.filters', array(), 'admin_module')) != 0 ? true : false;

    if($request->isXmlHttpRequest()) {
        $this->setLayout(false);
        sfConfig::set('sf_web_debug', false);
        sfProjectConfiguration::getActive()->loadHelpers(array('I18N', 'Date'));
        return $this->renderPartial('<?php echo $this->getModuleName() ?>/list', array('pager' => $this->pager, 'sort' => $this->sort, 'helper' => $this->helper));
    }
  }
